package com.foreverwin.mes.lims.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.foreverwin.mes.lims.dto.InactiveTimeDto;
import com.foreverwin.mes.lims.model.InactiveTime;
import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.core.base.FrontPage;
import com.foreverwin.mes.lims.model.InactiveTimeItem;

import java.util.List;

/**
 * <p>
 * 呆滞时间设置 服务类
 * </p>
 *
 * @author Max
 * @since 2020-03-09
 */
public interface InactiveTimeService extends IService<InactiveTime> {

    /**
     *  分页查询
     * @param frontPage
     * @return
     */
    Page<InactiveTime> selectPage(FrontPage<InactiveTime> frontPage, InactiveTime inactiveTime);

    List<InactiveTime> selectList(InactiveTime inactiveTime);

    /**
     * 查询呆滞时间设置
     * @param inactiveTime
     * @return
     */
    List<InactiveTimeItem> selectTimeSetList(InactiveTime inactiveTime);
    /**
     * 保存或更新呆滞时间设置
     * @param inactiveTimeDto
     * @return
     */
    int insertOrUpdateTimeSetList(InactiveTimeDto inactiveTimeDto);
}